<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>SSF.OS.OSPF: Link State Database Content Test</title>
</head>

<body bgcolor="white">

<h2>SSF.OS.OSPF Link State Database Content Test</h2>

<h3>Description</h3>

Check that the methods <code>sOSPF.createLSDatabase()</code> and
<code>sOSPF.acceptASExternalRoute()</code> create the link state database
correctly.

<h3>Expected Results</h3>

<p align="justify">
The link state information should reflect the current network status
and topology.  In a single OSPF area all link state databases should
be identical.  In this test the network components don't fail, thus
after convergence of the external route flooding protocol (present
only in multi-AS configurations) the link state databases don't change
any more.
</p>

<h3>Files</h3>

<p>
Configuration file: <a href="lsdb1.dml"><code>lsdb1.dml</code></a><br>
Raw output: <a href="lsdb1-raw.out"><code>lsdb1-raw.out</code></a>
</p>

<h3>Analysis</h3>

<b>Example Link State Database</b>

<p>
<u>LEGEND</u><br>
<table cellpadding="0" cellspacing="0">
<tr>
<td><i>Symbol</i></td>
<td>&nbsp;&nbsp;</td>
<td><i>Definition</i></td>
</tr>

<tr>
<td><tt>typ</tt></td>
<td>&nbsp;&nbsp;</td>
<td>the link type</td>
</tr>

<tr>
<td><tt>p2p</tt></td>
<td>&nbsp;&nbsp;</td>
<td>a point-to-point link to an OSPF router</td>
</tr>

<tr>
<td><tt>p2h</tt></td>
<td>&nbsp;&nbsp;</td>
<td>a point-to-point link to a host</td>
</tr>

<tr>
<td><tt>stb</tt></td>
<td>&nbsp;&nbsp;</td>
<td>link to a stub network (such as a LAN)</td>
</tr>

<tr>
<td><tt>nh</tt></td>
<td>&nbsp;&nbsp;</td>
<td>the router's NHI address prefix</td>
</tr>

<tr>
<td><tt>lnkid</tt></td>
<td>&nbsp;&nbsp;</td>
<td>the IP address</td>
</tr>

<tr>
<td><tt>dat</tt></td>
<td>&nbsp;&nbsp;</td>
<td>data (meaning depends upon link type)</td>
</tr>

<tr>
<td><tt>mtyp</tt></td>
<td>&nbsp;&nbsp;</td>
<td>the metric type</td>
</tr>

<tr>
<td><tt>met</tt></td>
<td>&nbsp;&nbsp;</td>
<td>the metric value (link cost)</td>
</tr>

</table>

<font color="#ff0000">
<pre>
0:0   Link State Database for OSPF at host 0:0
0:0 AE  - - - - - AS External Links
0:0 RL  - - - - - Router Links
0:0 RL 0:0  router 0:0 --->
0:0 RL 0:0 .   area=0 typ=p2p nh=0:1      lnkid=0.0.1.214  dat=1  mtyp=0 met=1  -->
0:0 RL 0:0 .   area=0 typ=p2p nh=0:2      lnkid=0.0.1.206  dat=2  mtyp=0 met=1  -->
0:0 RL 0:0 .   area=0 typ=p2p nh=4        lnkid=0.0.1.202  dat=0  mtyp=0 met=1  -->
0:0 RL 0:0 .   area=0 typ=stb nh=0:0      lnkid=0.0.1.200  dat=30 mtyp=0 met=1  -->
0:0 RL 0:0 .   area=0 typ=stb nh=0:0      lnkid=0.0.1.204  dat=30 mtyp=0 met=1 
0:0 RL 0:0 .   area=0 typ=stb nh=0:0      lnkid=0.0.1.212  dat=30 mtyp=0 met=1  -->
0:0 RL 0:1  router 0:1 --->
0:0 RL 0:1 .   area=0 typ=p2p nh=0:0      lnkid=0.0.1.213  dat=0  mtyp=0 met=1  -->
0:0 RL 0:1 .   area=0 typ=p2p nh=0:2      lnkid=0.0.1.210  dat=2  mtyp=0 met=1  -->
0:0 RL 0:1 .   area=0 typ=p2p nh=5        lnkid=0.0.1.198  dat=1  mtyp=0 met=1  -->
0:0 RL 0:1 .   area=0 typ=stb nh=0:1      lnkid=0.0.1.196  dat=30 mtyp=0 met=1  -->
0:0 RL 0:1 .   area=0 typ=stb nh=0:1      lnkid=0.0.1.208  dat=30 mtyp=0 met=1 
0:0 RL 0:1 .   area=0 typ=stb nh=0:1      lnkid=0.0.1.212  dat=30 mtyp=0 met=1  -->
0:0 RL 0:2  router 0:2 --->
0:0 RL 0:2 .   area=0 typ=p2p nh=0:0      lnkid=0.0.1.205  dat=0  mtyp=0 met=1  -->
0:0 RL 0:2 .   area=0 typ=p2p nh=0:1      lnkid=0.0.1.209  dat=1  mtyp=0 met=1  -->
0:0 RL 0:2 .   area=0 typ=p2p nh=1:0      lnkid=0.0.1.194  dat=2  mtyp=0 met=1  -->
0:0 RL 0:2 .   area=0 typ=stb nh=0:2      lnkid=0.0.1.192  dat=30 mtyp=0 met=1 
0:0 RL 0:2 .   area=0 typ=stb nh=0:2      lnkid=0.0.1.204  dat=30 mtyp=0 met=1  -->
0:0 RL 0:2 .   area=0 typ=stb nh=0:2      lnkid=0.0.1.208  dat=30 mtyp=0 met=1  -->
0:0 RL 1:0  router 1:0 --->
0:0 RL 1:0 .   area=0 typ=p2h nh=1:0      lnkid=0.0.1.146  dat=32 mtyp=0 met=1  -->
0:0 RL 1:0 .   area=0 typ=p2h nh=1:0      lnkid=0.0.1.150  dat=32 mtyp=0 met=1 
0:0 RL 1:0 .   area=0 typ=p2p nh=0:2      lnkid=0.0.1.193  dat=0  mtyp=0 met=1  -->
0:0 RL 1:0 .   area=0 typ=p2p nh=1:1      lnkid=0.0.1.162  dat=1  mtyp=0 met=1  -->
0:0 RL 1:0 .   area=0 typ=stb nh=1:0      lnkid=0.0.1.160  dat=30 mtyp=0 met=1  -->
0:0 RL 1:0 .   area=0 typ=stb nh=1:0      lnkid=0.0.1.192  dat=30 mtyp=0 met=1  -->
0:0 RL 1:1  router 1:1 --->
0:0 RL 1:1 .   area=0 typ=p2h nh=1:1      lnkid=0.0.1.130  dat=32 mtyp=0 met=1  -->
0:0 RL 1:1 .   area=0 typ=p2h nh=1:1      lnkid=0.0.1.134  dat=32 mtyp=0 met=1  -->
0:0 RL 1:1 .   area=0 typ=p2p nh=1:0      lnkid=0.0.1.161  dat=2  mtyp=0 met=1  -->
0:0 RL 1:1 .   area=0 typ=stb nh=1:1      lnkid=0.0.1.160  dat=30 mtyp=0 met=1 
0:0 RL 2:0  router 2:0 --->
0:0 RL 2:0 .   area=0 typ=p2p nh=2:1      lnkid=0.0.0.158  dat=1  mtyp=0 met=1  -->
0:0 RL 2:0 .   area=0 typ=p2p nh=2:2      lnkid=0.0.0.154  dat=0  mtyp=0 met=1  -->
0:0 RL 2:0 .   area=0 typ=p2p nh=4        lnkid=0.0.0.197  dat=2  mtyp=0 met=1  -->
0:0 RL 2:0 .   area=0 typ=stb nh=2:0      lnkid=0.0.0.152  dat=30 mtyp=0 met=1  -->
0:0 RL 2:0 .   area=0 typ=stb nh=2:0      lnkid=0.0.0.156  dat=30 mtyp=0 met=1  -->
0:0 RL 2:0 .   area=0 typ=stb nh=2:0      lnkid=0.0.0.196  dat=30 mtyp=0 met=1 
0:0 RL 2:1  router 2:1 --->
0:0 RL 2:1 .   area=0 typ=p2p nh=2:0      lnkid=0.0.0.157  dat=0  mtyp=0 met=1  -->
0:0 RL 2:1 .   area=0 typ=p2p nh=2:3      lnkid=0.0.0.78   dat=1  mtyp=0 met=1  -->
0:0 RL 2:1 .   area=0 typ=p2p nh=4        lnkid=0.0.0.193  dat=2  mtyp=0 met=1  -->
0:0 RL 2:1 .   area=0 typ=stb nh=2:1      lnkid=0.0.0.156  dat=30 mtyp=0 met=1  -->
0:0 RL 2:1 .   area=0 typ=stb nh=2:1      lnkid=0.0.0.192  dat=30 mtyp=0 met=1 
0:0 RL 2:1 .   area=0 typ=stb nh=2:1      lnkid=0.0.0.76   dat=30 mtyp=0 met=1  -->
0:0 RL 2:2  router 2:2 --->
0:0 RL 2:2 .   area=0 typ=p2p nh=2:0      lnkid=0.0.0.153  dat=3  mtyp=0 met=1  -->
0:0 RL 2:2 .   area=0 typ=p2p nh=2:3      lnkid=0.0.0.150  dat=2  mtyp=0 met=1  -->
0:0 RL 2:2 .   area=0 typ=p2p nh=2:4      lnkid=0.0.0.146  dat=1  mtyp=0 met=1  -->
0:0 RL 2:2 .   area=0 typ=stb nh=2:2      lnkid=0.0.0.136  dat=29 mtyp=0 met=1  -->
0:0 RL 2:2 .   area=0 typ=stb nh=2:2      lnkid=0.0.0.144  dat=30 mtyp=0 met=1  -->
0:0 RL 2:2 .   area=0 typ=stb nh=2:2      lnkid=0.0.0.148  dat=30 mtyp=0 met=1  -->
0:0 RL 2:2 .   area=0 typ=stb nh=2:2      lnkid=0.0.0.152  dat=30 mtyp=0 met=1 
0:0 RL 2:3  router 2:3 --->
0:0 RL 2:3 .   area=0 typ=p2p nh=2:1      lnkid=0.0.0.77   dat=3  mtyp=0 met=1  -->
0:0 RL 2:3 .   area=0 typ=p2p nh=2:2      lnkid=0.0.0.149  dat=0  mtyp=0 met=1  -->
0:0 RL 2:3 .   area=0 typ=p2p nh=2:5      lnkid=0.0.0.74   dat=1  mtyp=0 met=1  -->
0:0 RL 2:3 .   area=0 typ=stb nh=2:3      lnkid=0.0.0.148  dat=30 mtyp=0 met=1  -->
0:0 RL 2:3 .   area=0 typ=stb nh=2:3      lnkid=0.0.0.64   dat=29 mtyp=0 met=1  -->
0:0 RL 2:3 .   area=0 typ=stb nh=2:3      lnkid=0.0.0.72   dat=30 mtyp=0 met=1  -->
0:0 RL 2:3 .   area=0 typ=stb nh=2:3      lnkid=0.0.0.76   dat=30 mtyp=0 met=1 
0:0 RL 2:4  router 2:4 --->
0:0 RL 2:4 .   area=0 typ=p2p nh=2:2      lnkid=0.0.0.145  dat=1  mtyp=0 met=1  -->
0:0 RL 2:4 .   area=0 typ=stb nh=2:4      lnkid=0.0.0.128  dat=29 mtyp=0 met=1  -->
0:0 RL 2:4 .   area=0 typ=stb nh=2:4      lnkid=0.0.0.144  dat=30 mtyp=0 met=1 
0:0 RL 2:5  router 2:5 --->
0:0 RL 2:5 .   area=0 typ=p2p nh=2:3      lnkid=0.0.0.73   dat=2  mtyp=0 met=1  -->
0:0 RL 2:5 .   area=0 typ=p2p nh=2:6      lnkid=0.0.0.42   dat=0  mtyp=0 met=1  -->
0:0 RL 2:5 .   area=0 typ=stb nh=2:5      lnkid=0.0.0.32   dat=29 mtyp=0 met=1  -->
0:0 RL 2:5 .   area=0 typ=stb nh=2:5      lnkid=0.0.0.40   dat=30 mtyp=0 met=1  -->
0:0 RL 2:5 .   area=0 typ=stb nh=2:5      lnkid=0.0.0.72   dat=30 mtyp=0 met=1 
0:0 RL 2:6  router 2:6 --->
0:0 RL 2:6 .   area=0 typ=p2p nh=2:5      lnkid=0.0.0.41   dat=3  mtyp=0 met=1  -->
0:0 RL 2:6 .   area=0 typ=stb nh=2:6      lnkid=0.0.0.0    dat=29 mtyp=0 met=1  -->
0:0 RL 2:6 .   area=0 typ=stb nh=2:6      lnkid=0.0.0.16   dat=29 mtyp=0 met=1  -->
0:0 RL 2:6 .   area=0 typ=stb nh=2:6      lnkid=0.0.0.40   dat=30 mtyp=0 met=1 
0:0 RL 2:6 .   area=0 typ=stb nh=2:6      lnkid=0.0.0.8    dat=29 mtyp=0 met=1  -->
0:0 RL 3:0  router 3:0 --->
0:0 RL 3:0 .   area=0 typ=p2p nh=3:1      lnkid=0.0.1.90   dat=2  mtyp=0 met=1  -->
0:0 RL 3:0 .   area=0 typ=p2p nh=5        lnkid=0.0.1.85   dat=3  mtyp=0 met=1  -->
0:0 RL 3:0 .   area=0 typ=stb nh=3:0      lnkid=0.0.1.64   dat=29 mtyp=0 met=1  -->
0:0 RL 3:0 .   area=0 typ=stb nh=3:0      lnkid=0.0.1.72   dat=29 mtyp=0 met=1  -->
0:0 RL 3:0 .   area=0 typ=stb nh=3:0      lnkid=0.0.1.84   dat=30 mtyp=0 met=1 
0:0 RL 3:0 .   area=0 typ=stb nh=3:0      lnkid=0.0.1.88   dat=30 mtyp=0 met=1  -->
0:0 RL 3:1  router 3:1 --->
0:0 RL 3:1 .   area=0 typ=p2p nh=3:0      lnkid=0.0.1.89   dat=0  mtyp=0 met=1  -->
0:0 RL 3:1 .   area=0 typ=p2p nh=3:2      lnkid=0.0.1.50   dat=1  mtyp=0 met=1  -->
0:0 RL 3:1 .   area=0 typ=p2p nh=3:3      lnkid=0.0.1.42   dat=2  mtyp=0 met=1  -->
0:0 RL 3:1 .   area=0 typ=p2p nh=5        lnkid=0.0.1.81   dat=3  mtyp=0 met=1  -->
0:0 RL 3:1 .   area=0 typ=stb nh=3:1      lnkid=0.0.1.40   dat=30 mtyp=0 met=1  -->
0:0 RL 3:1 .   area=0 typ=stb nh=3:1      lnkid=0.0.1.48   dat=30 mtyp=0 met=1  -->
0:0 RL 3:1 .   area=0 typ=stb nh=3:1      lnkid=0.0.1.80   dat=30 mtyp=0 met=1 
0:0 RL 3:1 .   area=0 typ=stb nh=3:1      lnkid=0.0.1.88   dat=30 mtyp=0 met=1  -->
0:0 RL 3:2  router 3:2 --->
0:0 RL 3:2 .   area=0 typ=p2p nh=3:1      lnkid=0.0.1.49   dat=2  mtyp=0 met=1  -->
0:0 RL 3:2 .   area=0 typ=p2p nh=3:3      lnkid=0.0.1.46   dat=1  mtyp=0 met=1  -->
0:0 RL 3:2 .   area=0 typ=stb nh=3:2      lnkid=0.0.1.32   dat=29 mtyp=0 met=1  -->
0:0 RL 3:2 .   area=0 typ=stb nh=3:2      lnkid=0.0.1.44   dat=30 mtyp=0 met=1  -->
0:0 RL 3:2 .   area=0 typ=stb nh=3:2      lnkid=0.0.1.48   dat=30 mtyp=0 met=1 
0:0 RL 3:3  router 3:3 --->
0:0 RL 3:3 .   area=0 typ=p2p nh=3:1      lnkid=0.0.1.41   dat=3  mtyp=0 met=1  -->
0:0 RL 3:3 .   area=0 typ=p2p nh=3:2      lnkid=0.0.1.45   dat=0  mtyp=0 met=1  -->
0:0 RL 3:3 .   area=0 typ=stb nh=3:3      lnkid=0.0.1.0    dat=29 mtyp=0 met=1  -->
0:0 RL 3:3 .   area=0 typ=stb nh=3:3      lnkid=0.0.1.40   dat=30 mtyp=0 met=1 
0:0 RL 3:3 .   area=0 typ=stb nh=3:3      lnkid=0.0.1.44   dat=30 mtyp=0 met=1  -->
0:0 RL 3:3 .   area=0 typ=stb nh=3:3      lnkid=0.0.1.8    dat=29 mtyp=0 met=1  -->
0:0 RL 4  router 4 --->
0:0 RL 4 .   area=0 typ=p2p nh=0:0      lnkid=0.0.1.201  dat=3  mtyp=0 met=1  -->
0:0 RL 4 .   area=0 typ=p2p nh=2:0      lnkid=0.0.0.198  dat=0  mtyp=0 met=1  -->
0:0 RL 4 .   area=0 typ=p2p nh=2:1      lnkid=0.0.0.194  dat=1  mtyp=0 met=1  -->
0:0 RL 4 .   area=0 typ=p2p nh=5        lnkid=0.0.1.226  dat=2  mtyp=0 met=1  -->
0:0 RL 4 .   area=0 typ=stb nh=4        lnkid=0.0.0.192  dat=30 mtyp=0 met=1  -->
0:0 RL 4 .   area=0 typ=stb nh=4        lnkid=0.0.0.196  dat=30 mtyp=0 met=1  -->
0:0 RL 4 .   area=0 typ=stb nh=4        lnkid=0.0.1.200  dat=30 mtyp=0 met=1 
0:0 RL 4 .   area=0 typ=stb nh=4        lnkid=0.0.1.224  dat=30 mtyp=0 met=1  -->
0:0 RL 5  router 5 --->
0:0 RL 5 .   area=0 typ=p2p nh=0:1      lnkid=0.0.1.197  dat=3  mtyp=0 met=1  -->
0:0 RL 5 .   area=0 typ=p2p nh=3:0      lnkid=0.0.1.86   dat=1  mtyp=0 met=1  -->
0:0 RL 5 .   area=0 typ=p2p nh=3:1      lnkid=0.0.1.82   dat=2  mtyp=0 met=1  -->
0:0 RL 5 .   area=0 typ=p2p nh=4        lnkid=0.0.1.225  dat=0  mtyp=0 met=1  -->
0:0 RL 5 .   area=0 typ=stb nh=5        lnkid=0.0.1.196  dat=30 mtyp=0 met=1 
0:0 RL 5 .   area=0 typ=stb nh=5        lnkid=0.0.1.224  dat=30 mtyp=0 met=1  -->
0:0 RL 5 .   area=0 typ=stb nh=5        lnkid=0.0.1.80   dat=30 mtyp=0 met=1  -->
0:0 RL 5 .   area=0 typ=stb nh=5        lnkid=0.0.1.84   dat=30 mtyp=0 met=1  -->
</pre>
</font>

<h3>Results</h3>

<p>
The link state database matches the tested topology.
</p>


<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>

</body>
</html>
